<%@page import="com.rocky.ssm.model.Students"%>
<%@page import="com.rocky.ssm.dao.stuBaseDao"%>
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
	//1 接收参数
	String strId = request.getParameter("stu_id");
	int stu_id = 0;
	if(strId != null && !"".equals(strId)) {
		stu_id = Integer.parseInt(strId);
	}
	
	//2 调用方法
	stuBaseDao sbd = new stuBaseDao();
	int result = sbd.stuDel(stu_id);
	
	//3 页面跳转	
	if(result>0) {
		request.getRequestDispatcher("stu_pay.jsp").forward(request, response);
	}else {
		request.getRequestDispatcher("stu_pay.jsp").forward(request, response);
	}
	
%>
